Title Banner


Technotes


Calling SetResLoad



Technote TB 02October 1985



Revised by: March 1988
Written by: Jim Friedlander October 1985



Calling SetResLoad(FALSE) can be useful if you need to get a handle to a resource, without causing the resource to be loaded from disk if it isn't already in memory. SetResLoad changes the value of the low-memory global ResLoad (at location $A5E).

It is very important that your program not leave ResLoad set to FALSE when it exits. Doing this will cause the system to reboot or crash when it does a GetResource call for the next code segment to be loaded (usually the Finder). The system will crash because GetResource will not actually load the code from disk when ResLoad is FALSE.

So, make sure that you call SetResLoad(TRUE) before exiting your program.


Further Reference:



Tech Support
Technotes
Previous Technote | Contents | Next Technote


Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help